<template>
  <div>
    <van-cell-group>
      <van-cell>
        <van-row>
          <van-col span="4">
            <van-icon name="user-circle-o" />
          </van-col>
          <van-col span="20">
            <div>用户名csc123456</div>
            <div>手机号18720725416</div>
          </van-col>
        </van-row>
      </van-cell>
      <van-cell title="我的订单" is-link to="/myorder" />
      <van-cell title="收货地址" to="/addresslist?type=mine" is-link />
      <van-divider />
      <van-cell title="设置" is-link />
      <van-cell title="关于我们" is-link />
      <van-cell title="退出登录" @click="logout" is-link />
    </van-cell-group>
  </div>
</template>

<script setup>
import router from "@/router";
const logout = () => {
  localStorage.clear();
  router.push({ path: "/login" });
};
</script>
<style scoped>
.van-icon {
  font-size: 24px;
  color: #666;
  margin-right: 10px;
}
</style>
